package com.thinvent.nj.ais.service;

import com.thinvent.nj.mybatis.service.CURDService;
import com.thinvent.nj.ais.entity.DictGroup;
import com.thinvent.nj.ais.entity.DictItem;

import java.util.List;

/**
 * 字典 Service
 * @author liupj
 */
public interface DictService extends CURDService<DictGroup, String> {

    List<DictGroup> getAll();

    List<DictItem> getItemsByGroupKey(String groupKey);

    List<DictItem> getItemsByGroupId(String groupId);

    DictItem getUniqueItem(String groupKey, String itemKey);

    void insertDictItem(DictItem dictItem);

    DictItem getDictItem(String itemId);

    void updateDictItem(DictItem target);

    void deleteDictItem(String id);
}
